const express = require("express");
const app = express();
const port = 5000;

// 登录
app.post("/api/mock/system/login", (req, res) => {
	res.json(require("./mock/system/login.json"));
});

app.get("/api/mock/menu/list", (req, res) => {
	res.json(require("./mock/menuList.json"));
});

app.get("/api/mock/auth/buttons", (req, res) => {
	res.json(require("./mock/authButton.json"));
});

app.post("/api/mock/user/queryList", (req, res) => {
	res.json(require("./mock/userQueryList.json"));
});

app.post("/api/mock/user/add", (req, res) => {
	res.json(require("./mock/addData.json"));
});

app.listen(port, () => {
	console.log(`Server is running on http://localhost:${port}`);
});
